;(function () {
  var init = function () {
    bindEvent();
  }

  function bindEvent () {
    $('.J_menu_btn').click(handleMenuClick);
    $('.J_search_btn').click(handleSearchClick);
  }

  function handleMenuClick () {
    var isOpen = $('.J_menu_nav').hasClass('open');
    if(isOpen) {
      $('.J_menu_nav').removeClass('open').addClass('close');
    }else {
      $('.J_menu_nav').removeClass('close').addClass('open');
    }
  }

  function handleSearchClick(){
    alert('尊敬的访客，个人博客还在开发中，小作者的学习博客都在CSDN上呢~~');
  }

  init();
})();